package com.xms.queryview.core.component;

import com.xms.core.components.QueryColumnSortInfo;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * GridDescriptor
 * </p>
 *
 * @author migo
 * @since 2021/9/3
 */
public class GridDescriptor implements Serializable {
    public List<QueryColumnSortInfo> SortColumns;

    public List<RowDescriptor> Rows;

    public RowCommand[] RowCommand;

    public List<String> ClientResources;

    public void addRow(RowDescriptor row)
    {
        this.Rows.add(row);
    }

    public void addSort(QueryColumnSortInfo sort)
    {
        this.SortColumns.add(sort);
    }
}
